package cn.jindong.mall.gateway;

/**
 * @author LYX
 * @data 2022/3/31 11:07
 */

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1、开启服务注册发现
 *  (配置nacos的注册中心地址)
 * 2、编写网关配置文件
 */

@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})//排除数据源相关配置
public class JinDongGatewayApp {

    public static void main(String[] args) {
        SpringApplication.run(JinDongGatewayApp.class, args);
    }

}

